package com.dmp.common.entity;


import lombok.Data;

/**
 * @Author: Xiaohei
 * @CreateTime: 2021/12/27 21:45
 */
@Data
public class Result {

    private String code;

    private String message;

    private Object data;

    public static Result success() {
        Result result = new Result();
        result.setCode("200");
        result.setMessage("成功");
        return result;
    }

    public static Result success(Object data) {
        Result result = Result.success();
        result.setData(data);
        return result;
    }
}
